package com.xiaozhengkeji.xiaozhengblog.base.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xiaozhengkeji.xiaozhengblog.base.entitys.ArticleEntity;
import java.util.List;
import com.xiaozhengkeji.xiaozhengblog.base.mapper.ArticleEntityMapper;
@Service
public class ArticleEntityService{

    @Resource
    private ArticleEntityMapper articleEntityMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return articleEntityMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ArticleEntity record) {
        return articleEntityMapper.insert(record);
    }

    
    public int insertSelective(ArticleEntity record) {
        return articleEntityMapper.insertSelective(record);
    }

    
    public ArticleEntity selectByPrimaryKey(Integer id) {
        return articleEntityMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(ArticleEntity record) {
        return articleEntityMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ArticleEntity record) {
        return articleEntityMapper.updateByPrimaryKey(record);
    }

    
    public List<ArticleEntity> queryByAll(ArticleEntity articleEntity) {
        return articleEntityMapper.queryByAll(articleEntity);
    }

    
    public List<ArticleEntity> queryByArticleStatus(Integer articleStatus) {
        return articleEntityMapper.queryByArticleStatus(articleStatus);
    }

    
    public List<ArticleEntity> queryByArticleClass(Integer articleClass) {
        return articleEntityMapper.queryByArticleClass(articleClass);
    }

    
    public List<ArticleEntity> queryByArticleClassAndArticleStatus(Integer articleClass,Integer articleStatus) {
        return articleEntityMapper.queryByArticleClassAndArticleStatus(articleClass,articleStatus);
    }

    
    public List<ArticleEntity> queryByArticleTags(String articleTags) {
        return articleEntityMapper.queryByArticleTags(articleTags);
    }

    
    public List<ArticleEntity> queryByArticleTagsAndArticleStatus(String articleTags,Integer articleStatus) {
        return articleEntityMapper.queryByArticleTagsAndArticleStatus(articleTags,articleStatus);
    }

}
